import { http } from '@/utils/http'
import type { Iform, IbyIdParams } from '@/types/review'

export const saveReviewAPI = (data: Iform) => {
  return http<string>({
    method: 'POST',
    url: '/sys/app/reviews/saveReview',
    data,
  })
}
export const getReviewByIdAPI = (data: IbyIdParams) => {
  return http<Iform>({
    method: 'GET',
    url: '/sys/app/reviews/byId',
    data,
  })
}
